package com.novunda.platform.web.model;

import java.io.Serializable;

/**
 * .
 * 功能说明：接口操作结果返回model
 * @author FJ
 * @see 2016年9月20日
 * @version 1.0
 */
public class ResultModel<T> implements Serializable {
	/**.
	 * 
	 */
	private static final long serialVersionUID = 2034399155031954158L;

	public ResultModel() {
    }

    public ResultModel(int returnCode, String returnMessage) {
        this.returnCode = returnCode;
        this.returnMessage = returnMessage;
    }
    /**
     * .
     * 返回码，0成功
     */
    private int returnCode = 0;
    /**
     * .
     * 返回信息
     */
    private String returnMessage = "success";
    /**
     * .
     * 返回对象
     */
    private T object;

    public int getReturnCode() {
        return returnCode;
    }

    public void setReturnCode(int returnCode) {
        this.returnCode = returnCode;
    }

    public String getReturnMessage() {
        return returnMessage;
    }

    public void setReturnMessage(String returnMessage) {
        this.returnMessage = returnMessage;
    }

	public T getObject() {
		return object;
	}

	public void setObject(T object) {
		this.object = object;
	}

}
